package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ShopOrderItem;

/**
 * 订单项Mapper接口
 * 
 * @author ruoyi
 * @date 2025-10-20
 */
public interface ShopOrderItemMapper 
{
    /**
     * 查询订单项
     * 
     * @param itemId 订单项主键
     * @return 订单项
     */
    public ShopOrderItem selectShopOrderItemByItemId(Long itemId);

    /**
     * 查询订单项列表
     * 
     * @param shopOrderItem 订单项
     * @return 订单项集合
     */
    public List<ShopOrderItem> selectShopOrderItemList(ShopOrderItem shopOrderItem);

    /**
     * 新增订单项
     * 
     * @param shopOrderItem 订单项
     * @return 结果
     */
    public int insertShopOrderItem(ShopOrderItem shopOrderItem);

    /**
     * 修改订单项
     * 
     * @param shopOrderItem 订单项
     * @return 结果
     */
    public int updateShopOrderItem(ShopOrderItem shopOrderItem);

    /**
     * 删除订单项
     * 
     * @param itemId 订单项主键
     * @return 结果
     */
    public int deleteShopOrderItemByItemId(Long itemId);

    /**
     * 批量删除订单项
     * 
     * @param itemIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopOrderItemByItemIds(Long[] itemIds);
}
